<script language="javascript">
    top.location='<?php echo Yii::app()->createUrl('/user/logout',array('back'=>1));?>';
</script>